import request from '@/utils/request'

// 列表
export const reportList = (data) => {
    return request({
        url: '/report/purchase-report-list',
        method: 'post',
        data
    })
}

export const supplierPurchaseSummaryExcel = (data) => {
    return request({
        url: '/report/supplierPurchaseSummaryExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}

export const supplierPurchaseDetailExcel = (data) => {
    return request({
        url: '/report/supplierPurchaseDetailExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}

export const productPurchaseSummaryExcel = (data) => {
    return request({
        url: '/report/productPurchaseSummaryExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}

export const productPurchaseDetailExcel = (data) => {
    return request({
        url: '/report/productPurchaseDetailExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}

export const sellReportList = (data) => {
    return request({
        url: '/report/sell-report-list',
        method: 'post',
        data
    })
}

export const productSalesSummaryExcel = (data) => {
    return request({
        url: '/report/productSalesSummaryExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}

export const productSalesDetailExcel = (data) => {
    return request({
        url: '/report/productSalesDetailExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}


export const customerSalesSummaryExcel = (data) => {
    return request({
        url: '/report/customerSalesSummaryExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}



export const customerSalesDetailExcel = (data) => {
    return request({
        url: '/report/customerSalesDetailExcel',
        method: 'post',
        data,
        responseType: 'blob'
    })
}


export const reportBuyStatementList = (params) => {
    return request({
        url: '/report/buyStatementList',
        method: 'get',
        params
    })
}

export const reportSellStatementList = (params) => {
    return request({
        url: '/report/sellStatementList',
        method: 'get',
        params
    })
}


export const reportExportBuyStatementList = (params) => {
    return request({
        url: '/report/exportBuyStatementList',
        method: 'get',
        params,
        responseType: 'blob'
    })
}

export const reportExportSellStatementList = (params) => {
    return request({
        url: '/report/exportSellStatementList',
        method: 'get',
        params,
        responseType: 'blob'
    })
}














